<%--
  Created by IntelliJ IDEA.
  User: 糍粑呀
  Date: 2018/4/28
  Time: 19:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
    int a=10;
    pageContext.setAttribute("a",10);
    request.setAttribute("b",20);
    session.setAttribute("c",30);
    session.setAttribute("name","张三");
    application.setAttribute("d",40);

   %>
  <p>name=${sessionScope.name}</p>
  <p>a=${pageScope.a}</p>
  <p>b=${requestScope.b}</p>
  <p>c=${sessionScope.c}</p>
  <p>d=${applicationScope.d}</p>


</body>
</html>
